{% extends "crt/base.html" %}



{% block app_area %}
    <script language="JavaScript">
        function browse_to_tag(tag) {
            var page_path = "{% block page_path %}{% endblock %}";
            var url = path_path + "/" + tag; 
            document.location.href = url;
        }
    </script>
    
    
    <table class="tag_filter_header">
        <tr>
            <td nowrap align="left">
                <h3>
                    Current Reality Tree
                </h3>
            </td>
            <td nowrap align="right">
                <div class="tag_search">
                    <form name="tag_search_form">
                        <a href="javascript:browse_to_tag('')">All</a> >
                        <input type="text" name="tag" value="{{ tag }}"/>
                        <input type="button" value="Filter" onclick="browse_to_tag(document.tag_search_form.tag.value)"/>
                    </form>
                </div>
            </td>
        </tr>
    </table>
    
    {% block menu %}{% endblock %}
    <div id="welcome_msg">{{ welcome_msg }}</div>
    
    {% block view_area %}{% endblock %}
        
{% endblock %}
